package p2pEngine;


public class Comparer 
{
		public Comparer(){}

		//compare two strings
		public boolean compare( String strIn , String strExist ){		
			if ( strIn.length() != strExist.length() ){
				return false;
			}
			
			char[] str1 = strIn.toCharArray();
			char[] str2 = strExist.toCharArray();
			for ( int i = 0 ; i < strIn.length() ; i++ ){
				if ( str1[i] != str2[i] ){
					return false;
				}
			}
			
			return true;
		}

}

